
from django.contrib import admin
from models import *
#class ComponentsAdmin(admin.ModelAdmin):
 #   list_display=('title','description','files','approved', 'rejected')
#    exclude = ('title','description','files')


"""
these is a method for user as an admin so it should be write as class based on django fram work

the admin displays the attributes in class componant making only approve and reject visbile on the admin page 
then he can click on accept or reject based on his decision
Args : it takes admin and the Model admin which are built in the framwork
Returnes: it doen't return ay thing
"""


    

admin.site.register(User)
admin.site.register(Event)
admin.site.register(Attending)
admin.site.register(MaybeAttending)
admin.site.register(NotAttending)
admin.site.register(PayedAttendees)
admin.site.register(Visitor)
admin.site.register(Invited)
admin.site.register(TermsAndCondition)
admin.site.register(Faq)
admin.site.register(NewAndUpdate)
admin.site.register(AboutUs)
admin.site.register(Template)
admin.site.register(Location)
#admin.site.register(Components,ComponentsAdmin)
admin.site.register(Category)
admin.site.register(Pages)
admin.site.register(Link)
admin.site.register(Menu)
admin.site.register(KnowledgeStore)